<!-- pages/tabBar/demos/demos.vue -->
<template>
  <view>
    <button type="primary" @click="gotoLogin" style="margin-bottom: 15px;">跳转到登录页</button>
    demos
  </view>
</template>

<script>
export default {
  methods: {
    gotoLogin() {
      uni.navigateTo({
        url: "/pages/login/index" // 跳转到登录页
      });
    }
  }
};
</script>